<?php
	class LEO
	{	
		var $id;
		var $status;
		var $nachname;
		var $vorname;
		var $titel;
		var $adel;
		var $geburtsdatum;
		var $email;
		var $tel;
		var $mobil;
		var $adresse;
		var $plz;
		var $ort;
		var $land;
		var $email_g;
		var $tel_g;
		var $mobil_g;
		var $adresse_g;
		var $plz_g;
		var $ort_g;
		var $land_g;
		var $aktiv;
		
		/* public static function initFromDbRow($row)
		{
			$LEO = new LEO();
			
			$LEO->id = utf8_encode ($row["id"]);
			$LEO->status = utf8_encode ($row["status"]);
			$LEO->nachname = utf8_encode ($row["nachname"]);
			$LEO->vorname = utf8_encode ($row["vorname"]);
			$LEO->titel = utf8_encode ($row["titel"]);
			$LEO->adel = utf8_encode ($row["adel"]);
			$LEO->geburtsdatum = utf8_encode ($row["geburtsdatum"]);
			$LEO->email = utf8_encode ($row["email"]);
			$LEO->tel = utf8_encode ($row["tel"]);
			$LEO->mobil = utf8_encode ($row["mobil"]);
			$LEO->adresse = utf8_encode ($row["adresse"]);
			$LEO->plz = utf8_encode ($row["plz"]);
			$LEO->ort = utf8_encode ($row["ort"]);
			$LEO->land = utf8_encode ($row["land"]);
			$LEO->email_g = utf8_encode ($row["email_g"]);
			$LEO->tel_g = utf8_encode ($row["tel_g"]);
			$LEO->mobil_g = utf8_encode ($row["mobil_g"]);
			$LEO->adresse_g = utf8_encode ($row["adresse_g"]);
			$LEO->plz_g = utf8_encode ($row["plz_g"]);
			$LEO->ort_g = utf8_encode ($row["ort_g"]);
			$LEO->land_g = utf8_encode ($row["land_g"]);
			$LEO->aktiv = utf8_encode ($row["aktiv"]);
						
			return $LEO;
		} */
		
		public static function getLeoFromString($string)
		{
			$LEO = new LEO();
			
			$LEO->id =  ($string["id"]);
			$LEO->status =  ($string["status"]);
			$LEO->nachname =  ($string["nachname"]);
			$LEO->vorname =  ($string["vorname"]);
			$LEO->titel =  ($string["titel"]);
			$LEO->adel =  ($string["adel"]);
			$LEO->geburtsdatum =  ($string["geburtsdatum"]);
			$LEO->email =  ($string["email"]);
			$LEO->tel =  ($string["tel"]);
			$LEO->mobil =  ($string["mobil"]);
			$LEO->adresse =  ($string["adresse"]);
			$LEO->plz =  ($string["plz"]);
			$LEO->ort =  ($string["ort"]);
			$LEO->land =  ($string["land"]);
			$LEO->email_g =  ($string["email_g"]);
			$LEO->tel_g =  ($string["tel_g"]);
			$LEO->mobil_g =  ($string["mobil_g"]);
			$LEO->adresse_g =  ($string["adresse_g"]);
			$LEO->plz_g =  ($string["plz_g"]);
			$LEO->ort_g =  ($string["ort_g"]);
			$LEO->land_g =  ($string["land_g"]);
			$LEO->aktiv =  ($string["aktiv"]);
						
			return $LEO;
		}
	}
?>